package com.example.lvsuo.controller.cxg;

import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.cxg.DetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 *审批详情信息 Controller
 */

@RestController
@RequestMapping("details")
public class DetailsController {

    @Autowired
    DetailsService detailsService;


    @GetMapping(params = {"QueryOperation=getNotes"})
    public Result QueryDetails(@RequestParam Map<String,Object> map){
        List<Map<String,Object>> getNotesData = detailsService.QueryDetails(map);
        return  Result.back("ok","20000",getNotesData);
    }


    @GetMapping(params = {"QueryOperation=getData"})
    public Result QueryData(@RequestParam Map<String,Object> map){
        List<Map<String,Object>> getDataData = detailsService.QueryData(map);
        return  Result.back("ok","20000",getDataData);
    }


}
